//package com.example.novelstory.controller.zl;
//
//import com.example.novelstory.entity.Task;
//import com.example.novelstory.service.zl.TaskService;
//import io.swagger.annotations.Api;
//
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
//@Api
//@RestController
//public class TaskController {
//    @Autowired
//    TaskService taskService;
//    @RequestMapping(value = "findall", method = RequestMethod.POST)
//    @ApiOperation("查询")
//    public List<Task> findall1() {
//        List<Task> taskList = taskService.findall1();
//        return taskList;
//    }@RequestMapping(value = "findByName",method = RequestMethod.POST)
//    @ApiOperation("用户姓名查")
//    public List<Task> findByName(int sign){
//        List<Task> taskList=taskService.findByName(sign);
//        return taskList;
//    }
//    @RequestMapping(value = "insertUser",method = RequestMethod.POST)
//    @ApiOperation("添加用户")
//    public List<Task> insert(int sign,String invitatio,String gold_income){
//        List<Task> taskList = taskService.insert(sign,invitatio,gold_income);
//        return taskList;
//    }
//    @RequestMapping(value = "deleteUser",method = RequestMethod.POST)
//    @ApiOperation("删除用户")
//    public List<Task> deleteUser(int id){
//        List<Task> single = taskService.delete(id);
//        return single;
//    }
//    @RequestMapping(value = "updateUser",method = RequestMethod.POST)
//    @ApiOperation("更新用户")
//    public List<Task> update(int sign,String invitatio,String gold_income){
//        List<Task> taskList = taskService.update(sign,invitatio,gold_income);
//        return taskList;
//    }
//}
